

package com.googlecode.flac4j.format.frame.sub;


import com.googlecode.jinahya.util.BitAccessible;


import javax.xml.bind.annotation.XmlTransient;


/**
 *
 * @author Jin Kwon <jinahya at gmail.com>
 */
public abstract class Partition implements BitAccessible {


    // ------------------------------------------------------------- parent Rice
    /**
     * Returns the parent rice of this partition.
     *
     * @return parent rice
     */
    public final Rice getRice() {

        return rice;
    }


    /**
     * Sets the parent rice of this partition.
     *
     * @param rice parent rice
     */
    public final void setRice(final Rice rice) {

        if (rice == null) {
            throw new NullPointerException("null rice");
        }

        this.rice = rice;
    }


    /** parent rice. */
    @XmlTransient
    protected Rice rice;


}

